<template>
  <div class="root-con2">
    <div class="list">
      <div>
        <img src="@/assets/imgs/con2/a1.png" />
        <img src="@/assets/imgs/con2/a2.png" />
        <img src="@/assets/imgs/con2/a3.png" />
        <img src="@/assets/imgs/con2/a4.png" />
        <img src="@/assets/imgs/con2/a5.png" />
      </div>
      <div>
        <img src="@/assets/imgs/con2/b1.png" />
        <img src="@/assets/imgs/con2/b2.png" />
        <img src="@/assets/imgs/con2/b3.png" />
        <img src="@/assets/imgs/con2/b4.png" />
        <img src="@/assets/imgs/con2/b5.png" />
      </div>
      <div>
        <img src="@/assets/imgs/con2/c1.png" />
        <img class="c2" src="@/assets/imgs/con2/c2.png" />
        <img class="c3" src="@/assets/imgs/con2/c3.png" />
        <img class="c4" src="@/assets/imgs/con2/c4.png" />
      </div>
    </div>

    <img class="w1" src="@/assets/imgs/con2/w1.png" />

    <a href="#">
      <img class="w2" src="@/assets/imgs/con2/w2.png" />
    </a>

    <img class="b-left" src="@/assets/imgs/con2/snow.png" />
    <img class="b-right" src="@/assets/imgs/con2/snow.png" />
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>

<style lang="less">
@keyframes ani-show1 {
  0% {
    transform: translate(-2rem, 1rem);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes ani-show2 {
  0% {
    transform: translate(0, 1rem);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes ani-show3 {
  0% {
    transform: translate(2rem, 1rem);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

.root-con2 {
  position: relative;
  width: 100%;
  height: 23rem;
  background-image: url("@/assets/imgs/backs/back-blue.jpg");
  background-size: cover;
  box-sizing: border-box;
  padding-top: 1.58rem;
  .list {
    position: relative;
    display: flex;
    gap: 0.36rem;
    width: 12rem;
    margin: 0 auto;

    & > div {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.36rem;
      @supports (animation-timeline: view()) {
        &:nth-child(1) {
          img {
            animation: ani-show1 linear 1 alternate both;
            animation-timeline: view();
            animation-range: 0 20%;
          }
        }
        &:nth-child(2) {
          img {
            animation: ani-show2 linear 1 alternate both;
            animation-timeline: view();
            animation-range: 0 20%;
          }
        }
        &:nth-child(3) {
          img {
            animation: ani-show3 linear 1 alternate both;
            animation-timeline: view();
            animation-range: 0 20%;
          }
        }
      }

      img {
        max-width: 100%;

        &.c2 {
          width: 3.18rem;
          margin-top: -0.12rem;
        }
        &.c3 {
          margin-top: -0.08rem;
        }
        &.c4 {
          margin-top: -0.12rem;
        }
      }
    }
  }

  .w1 {
    position: relative;
    width: 9.57rem;
    display: block;
    margin: 1.4rem auto 0 auto;
  }

  .w2 {
    position: relative;
    width: 9.8rem;
    display: block;
    margin: 0.7rem auto 0 auto;
  }

  .b-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3.9rem;
  }

  .b-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 3.9rem;
    transform: scale(-1, 1);
  }
}
</style>